package com.etc.bvblog.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
 * <p>
 * 财务主表
 * </p>
 *
 * @author w
 * @since 2021-09-28
 */
@TableName("mt_account_head")
public class AccountHead implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型(支出/收入/收款/付款/转账)
     */
    private String type;

    /**
     * 单位Id(收款/付款单位)
     */
    private Long organId;

    /**
     * 经手人id
     */
    private Long handsPersonId;

    /**
     * 操作员
     */
    private Long creator;

    /**
     * 变动金额(优惠/收款/付款/实付)
     */
    private BigDecimal changeAmount;

    /**
     * 优惠金额
     */
    private BigDecimal discountMoney;

    /**
     * 合计金额
     */
    private BigDecimal totalPrice;

    /**
     * 账户(收款/付款)
     */
    private Long accountId;

    /**
     * 单据编号
     */
    private String billNo;

    /**
     * 单据日期
     */
    private Date billTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 附件名称
     */
    private String fileName;

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    private String deleteFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getOrganId() {
        return organId;
    }

    public void setOrganId(Long organId) {
        this.organId = organId;
    }

    public Long getHandsPersonId() {
        return handsPersonId;
    }

    public void setHandsPersonId(Long handsPersonId) {
        this.handsPersonId = handsPersonId;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public BigDecimal getChangeAmount() {
        return changeAmount;
    }

    public void setChangeAmount(BigDecimal changeAmount) {
        this.changeAmount = changeAmount;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public Date getBillTime() {
        return billTime;
    }

    public void setBillTime(Date billTime) {
        this.billTime = billTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "AccountHead{" +
        ", id=" + id +
        ", type=" + type +
        ", organId=" + organId +
        ", handsPersonId=" + handsPersonId +
        ", creator=" + creator +
        ", changeAmount=" + changeAmount +
        ", discountMoney=" + discountMoney +
        ", totalPrice=" + totalPrice +
        ", accountId=" + accountId +
        ", billNo=" + billNo +
        ", billTime=" + billTime +
        ", remark=" + remark +
        ", fileName=" + fileName +
        ", tenantId=" + tenantId +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
